int s(int x) 
{
	return (x == 1) ? 2 : s(x-1)+2*x;
}
void main() 
{
	printf("%d\n",s(4));
}